package com.rongj.generation;

import com.rongj.generation.core.GenerationHandle;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;
import javafx.stage.Stage;

public class Main extends Application {

    public static void main(String[] args){

        //GenerationHandle handle = new GenerationHandle();
       // handle.execute("t_add","com.test.gen","Add",true);

        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {
        try {
            System.out.println(getClass().getResource("fx/mains.fxml"));
            AnchorPane root = FXMLLoader.load(getClass().getResource("fx/mains.fxml"));
            Scene scene = new Scene(root,400,400);
            //scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
            primaryStage.setScene(scene);
            primaryStage.show();
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
}
